package Iterator;
import java.util.List;

public class Book implements Aggregate{
    private List<BookPage> bookPages;
    private Integer last;
    public BookPage getPageAt(Integer e) {
        return bookPages.get(e);
    }
    public Integer getPageNum() {
        return last;
    }
    @Override
    public Iterator iterator() {
        return new BookIterator(this);
    }
}
